<template>
 <Message></Message>
</template>

<script lang="ts" setup>
import routerGuard from '../../utils/router-guard'
import { onLoad, onShow} from '@dcloudio/uni-app'
import { ref, reactive } from 'vue'
//导入组件
import Message from './components/Message.vue'
// 主动触发路由守卫
onShow(async () => {
const pages = getCurrentPages()
const currentPage = pages[pages.length - 1]
const path = '/' + currentPage.route
routerGuard.checkRoute(path)
})


</script>

<style scoped></style>